/*
 * mikan.js JavaScript Web Library
 *  JavaScript Module
 *
 * Copyright (c) 2008-14 K.Sonohara
 *  or
 * Licensed LGPL license
 *
 * https://code.google.com/p/mikanjs/
 * http://www.expertsoftware-i.com/
 *
 */

/* ---------------------------------------------------------------------------------------------
 *  Import Section
 * --------------------------------------------------------------------------------------------- */

/* ---------------------------------------------------------------------------------------------
 *  Constant Section
 * --------------------------------------------------------------------------------------------- */

/* ---------------------------------------------------------------------------------------------
 *  Variable Section
 * --------------------------------------------------------------------------------------------- */
mikan.util = {};

/* ---------------------------------------------------------------------------------------------
 *  Function Section
 * --------------------------------------------------------------------------------------------- */
mikan.util.escape = function(v, html) {
	if (html == undefined) var html = false;
	try {
		if (html) {
			return v.replace(/</g, "&lt;").replace(/>/g, "&gt;");
		} else {
			return $('<span />').text(val).html();
		}
	} catch(e) {
		return "";
	}
};

/* ---------------------------------------------------------------------------------------------
 *  Class Section
 * --------------------------------------------------------------------------------------------- */

/* ---------------------------------------------------------------------------------------------
 *  Main Section
 * --------------------------------------------------------------------------------------------- */
